/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 8618
 */
public class T220054070111 {
    public static void main(String[] args) {
    Circle c1 = new Circle();
    printArea(c1);
    Circle c2 = new Circle(2);
    printArea(c2);
    Rectangle rec1 = new Rectangle();
    printArea(rec1);
    Rectangle rec2 = new Rectangle(2,3);
    printArea(rec2);

    printArea(new Ladder());
    Ladder lad2 = new Ladder(2,4,3);
    printArea(lad2);
    }
    public static void printArea(Circle c){
        System.out.println("圆的半径是"+c.getRadius()+"，面积是"+c.getArea());
    }
    public static void printArea(Rectangle rec){
        System.out.println(rec);
    }
    public static void printArea(Ladder lad){
        System.out.println(lad);
        System.out.println(lad.getArea());

    }
}
